import request from '@/utils/request'
// 获取图片验证码
export const getPicCode = () => {
  return request.get('/captcha/image')
}
// 获取短信验证码
export const getMsgCode = (captchaCode, captchaKey, mobille) => {
  return request.post('captcha/sendSmsCaptcha', {
    form: {
      captchaCode,
      captchaKey,
      mobille
    }
  })
}
// 手机验证登录
export const codeLogin = (mobile, smsCode) => {
  return request.post('passport/login', {
    form: {
      isParty: false,
      partyData: {},
      mobile,
      smsCode
    }
  })
}
